package cn.com.infohold.smartcity.api.bean;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by apple on 2017/4/19.
 */

public class Session implements Serializable {
    private static final String MESSAGE_SUCCESS = "success";

    @Expose()
    @SerializedName("message")
    String message;

    @Expose()
    @SerializedName("time")
    long time;

    @Expose()
    @SerializedName("code")
    int code;

    @Expose()
    @SerializedName("user")
    UserInfo userInfo;

    @Expose()
    @SerializedName("arcgisKey")
    String arcgisKey;

    public boolean isSuccess() {
        return MESSAGE_SUCCESS.equals(getMessage());
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public String getArcgisKey() {
        return arcgisKey;
    }

    public void setArcgisKey(String arcgisKey) {
        this.arcgisKey = arcgisKey;
    }
}
